<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">

	$(function(){
		initNeedSqjmfqfk();
	});

	//初始化是否申请减免分期付款
	function initNeedSqjmfqfk(){
		var needSqjmfqfk = '${needSqjmfqfk}';
		var needSqjmfqfkObj = document.getElementById("needSqjmfqfk");
		if(needSqjmfqfk == 1){
			needSqjmfqfkObj.checked = "checked";
			document.getElementById("jmfqly").disabled = false;
			document.getElementById("jmfe").disabled = false;
		}else{
			needSqjmfqfkObj.checked = "";
			document.getElementById("jmfqly").disabled = true;
			document.getElementById("jmfe").disabled = true;
			
		}
	}

	//验证是否申请减免分期付款
	function checkNeedSqjmfqfk(obj){
		var needSqjmfqfkObj = document.getElementById("needSqjmfqfk");
		if(obj.checked){
			needSqjmfqfkObj.value = 1;
			document.getElementById("jmfqly").disabled = false;
			document.getElementById("jmfe").disabled = false;
		}else{
			needSqjmfqfkObj.value = 2;
			document.getElementById("jmfqly").value = "";
			document.getElementById("jmfqly").disabled = true;
			document.getElementById("jmfe").disabled = true;
		}
	}
</script>
<table width="700" border="0" cellspacing="2" cellpadding="2">
      <tr>
        <td><table width="100%" border="0" cellspacing="2" cellpadding="2">
          <tr><td height="55" bordercolor="#000000" align="center" style="font-family:宋体,华文仿宋;font-size:22px;">
            <br/><b>广州市建筑废弃物处置证(排放)申请表</b><br/><br/>
          </td></tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="2">
                <tr>
                  <td height="25" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    申请时间
                  	<input name="sqDate" style="width:130" value="<s:date name='sqDate' format="yyyy年MM月dd日"/>" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" type="text" class="textdocWdate" readonly />
                  </td>
                  <td align="right" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    受理编号
                    <input id="acceptNo" name="acceptNo" value="${acceptNo}" type="text" style="width:130" class="readonly_cls" readonly />
                  </td>
                </tr>
        	  </table>
        </td>
      </tr>
            <tr>
              <td><table width="100%" border="1" cellspacing="0" cellpadding="2" class="tpl_list_ui">
                <tr>
                  <td width="10%" height="0"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                  <td width="10%"></td>
                </tr>
                <tr>                	
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font> 工程名称</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <input class="text" id="gcmc" name="gcmc" type="text" value="${gcmc}" style="width:100%" required="true" isHide="true"/>
                  </td>				    
                  <td bordercolor="#000000" colspan="2" height="25" align="center">工程地址</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="gcdz" value="${gcdz}" style="width:100%" />
                  </td>
                </tr>
                <tr>                	
                  <td bordercolor="#000000" colspan="2" height="25" align="center"> 工程类别</td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <select style="width:100%" id="gclb" name="gclb" onchange="aa();">
                    <c:forEach var="lb" items="${gclbList}" varStatus="status">
                        <option value="${lb.itemCode}" ${lb.itemCode eq gclb ? 'selected' : ''} >${lb.itemName}</option>
                    </c:forEach>
                    </select>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="3" height="25" align="center"><font color="red">*</font>建设单位(盖章)</td>
                  <td colspan="7" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <input class="text" id="sqdw" name="sqdw" type="text" value="${sqdw}" style="width:90%" required="true" isHide="true"/>
                    <input value="..." type="button" style="width:30" onclick="selectQyxx('${templateCode}');"></input>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="3" height="25" align="center">建设单位地址</td>
                  <td colspan="7" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="jsdwDz" value="${jsdwDz}" style="width:100%" />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>联系人</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" id="jsdwLxr" name="jsdwLxr"  type="text" value="${jsdwLxr}" style="width:100%" onchange="document.getElementById('lxr_').value=this.value;" required="true" isHide="true"/>
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="jsdwLxrLxdh" value="${jsdwLxrLxdh}" style="width:100%" onchange="document.getElementById('lxrTel_').value=this.value;" required="true" isHide="true"/>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="3" height="25" align="center"><font color="red">*</font>施工单位(盖章)</td>
                  <td colspan="7" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                    <input class="text" id="sgdwGz" name="sgdwGz" type="text" value="${sgdwGz}" style="width:90%" required="true" isHide="true"//>
                    <input value="..." type="button" style="width:30" onclick="selectQyxxTwo('${templateCode}');"></input>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">项目经理</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwXmjl" value="${sgdwXmjl}" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwXmjlLxdh" value="${sgdwXmjlLxdh}" style="width:100%" />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>联系人</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwLxr" value="${sgdwLxr}" style="width:100%" required="true"/>
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center"><font color="red">*</font>联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwLxrLxdh" value="${sgdwLxrLxdh}" style="width:100%" required="true"/>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">运输公司</td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" id="ysgs" name="ysgs" type="text" value="${ysgs}" style="width:91%" isHide="true"//>
                    <input value="..." type="button" style="width:30" onclick="selectYsgs('${templateCode}');"></input>
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">联系人</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="ysgsLxr" value="${ysgsLxr}" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="ysgsLxrLxdh" value="${ysgsLxrLxdh}" style="width:100%" />
                  </td>
                </tr>
                 <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">施工单位监督员</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwjdy" value="${sgdwjdy}" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sgdwjdydh" value="${sgdwjdydh}" style="width:100%" />
                  </td>
                </tr>
                    <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">运输单位监督员</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="ysdwjdy" value="${ysdwjdy}" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">联系电话</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="ysdwjdydh" value="${ysdwjdydh}" style="width:100%" />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">开工日期</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                  	<input name="ysgsKgrq" value="${ysgsKgrq}" style="width:100%" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" style="width:100%" class="textdocWdate" readonly />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">完工日期</td>
                  <td colspan="3" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                  	<input name="ysgsWgrq" value="${ysgsWgrq}" style="width:100%" onclick="WdatePicker({skin:'ext', dateFmt:'yyyy年MM月dd日'});" style="width:100%" class="textdocWdate" readonly />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="5" height="25" align="center">申报建筑废弃物处置量</td>
                  <td colspan="5" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input class="text" name="sbjzfqwczl" value="${sbjzfqwczl}" style="width:100%" />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="10" height="25" align="center">
                  	处置形式：&nbsp;&nbsp;&nbsp;
                   	排放<input type="radio" checked name="czxs" value="pf"/>
                   	<!-- 收纳<input type="radio" ${czxs=='sn'?'checked':'' } name="czxs" value="sn"/> -->
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="10" height="25" align="center">
	              	其&nbsp;&nbsp;&nbsp;中
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">拆屋渣土量</td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">基础柱(承台)土方量</td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">支护土方量</td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">地下室土方量</td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">其他土方量</td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">
                   	<input class="text" type="text" id="cwztfl" name="cwztfl" value="${cwztfl }" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">
                   	<input class="text" type="text" id="jcztfl" name="jcztfl" value="${jcztfl }" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">
                   	<input class="text" type="text" id="zhtfl" name="zhtfl" value="${zhtfl }" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">
                   	<input class="text" type="text" id="dxstfl" name="dxstfl" value="${dxstfl }" style="width:100%" />
                  </td>
                  <td bordercolor="#000000" colspan="2" height="25" align="center">
                   	<input class="text" type="text" id="qttfl" name="qttfl" value="${qttfl }" style="width:100%" />
                  </td>
                </tr>
                <tr>
                  <td bordercolor="#000000" colspan="2" height="25" rowspan="3" align="center">减免情况</td>
                  <td colspan="8" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<input type="checkbox" value="${needSqjmfqfk}" ${fn:indexOf(needSqjmfqfk, '1') ge 0 ? 'checked' : ''} onclick="checkNeedSqjmfqfk(this)"/>
					申请减免分期付款
                  </td>
                </tr>
                <tr>
                  <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	减免分期理由
                  </td>
                  <td colspan="6" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<textarea isHide="true" class="text" name="jmfqly" rows="5" style="width:100%"   rows="2"  >${jmfqly}</textarea>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	减免份额
                  </td>
                  <td colspan="6" bordercolor="#000000" style="padding: 1px 1px 1px 1px;">
                   	<select style="width:100%" id="jmfe" name="jmfe">
                    <c:forEach var="lb" items="${jmfeList}" varStatus="status">
                        <option value="${lb.itemCode}" ${lb.itemCode eq jmfe ? 'selected' : ''}>${lb.itemName}</option>
                    </c:forEach>
                    </select>
                  </td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
         <tr>
        <td>&nbsp;</td>
      </tr>
    </table>